package gui.other;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.beans.PropertyChangeListener;
/*

    This file is part of Logica-Logike.

    Logica-Logike is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation version 3 of the License.

    Logica-Logike is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with Logica-Logike.  If not, see <http://www.gnu.org/licenses/>.

 */
/**
 * No usada en el proyecto, secosnidera su eliminacion al final del proyecto;
 *
 * @deprecated;
 */
public class DisplayPanelAction implements Action {
    private boolean enabled;
    private CardLayout cardLayout;
    private Container container;
    private String displayString;

    public DisplayPanelAction(CardLayout cardLayout, Container container, String display) {
        enabled = true;
        this.cardLayout = cardLayout;
        this.container = container;
        this.displayString = display;
    }

    public Object getValue(String key) {
        return null;
    }

    public void putValue(String key, Object value) {

    }

    public void setEnabled(boolean b) {
        enabled = b;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {

    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {

    }

    public void actionPerformed(ActionEvent e) {
        cardLayout.show(container, displayString);//todo modify
    }
}
